package com.yan.demo04;

/**
 * @author yanheng
 * @data 2020/1/19 14:59
 */
public class Demo {
    public static void main(String[] args) {
        CglibProxyServer targetServer = new CglibProxyServer();
        CglibProxyFactory proxyFactory = new CglibProxyFactory();
        CglibProxyServer proxyInstance = (CglibProxyServer)proxyFactory.getProxyInstance(targetServer);
        proxyInstance.downloadResource("Hello");
        int count = proxyInstance.count(100);
    }
}
